package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblDiatrmentBedsetupDao;
import com.sinosoft.tcmneim.dataObject.TblDiatrmentBedsetup;
import com.sinosoft.tcmneim.service.TblDiatrmentBedsetupService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblDiatrmentBedsetupServiceImpl implements TblDiatrmentBedsetupService {

    @Resource
    private TblDiatrmentBedsetupDao tblDiatrmentBedsetupDao;


    @Override
    public List<TblDiatrmentBedsetup> list() {
        return tblDiatrmentBedsetupDao.list();
    }

    @Override
    public List<TblDiatrmentBedsetup> selectByItemCode(String itemCode) {
        return tblDiatrmentBedsetupDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertSelective(TblDiatrmentBedsetup tblDiatrmentBedsetup) {
        return tblDiatrmentBedsetupDao.insertSelective(tblDiatrmentBedsetup);
    }

    @Override
    public int updated(TblDiatrmentBedsetup tblDiatrmentBedsetup) {
        return tblDiatrmentBedsetupDao.updated(tblDiatrmentBedsetup);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblDiatrmentBedsetupDao.deleteByItemCode(itemCode);
    }
}
